Skip to contentSkip to conversation

Paid Engagement

Openvpn-devel Sio Poh Tan 5 participants 7 messages Oct 3, 2014 – Oct 9, 2014

lore
Share & tools
lore
#0 lore raw

Hello OpenVPN Developers,

I understand that the current version of OpenVPN supports implementation of TLS 1.2 using exported cert and key. However, I have a project that requires implementation of TLS 1.2 using cryptoapicert.

If any developer is interested to work on this implementation in OpenVPN, please email me specifying the cost of doing this. I do respect the developer's time and effort and hence, this will be a paid engagement.

Thank you.

Best Regards,
Isaac

#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Have you checked if the OpenVPN Connect client (bundled with the Access Server) meets your requirements? See section 5 in here:

<http://openvpn.net/index.php/access-server/as-advantages.html>

- --
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

Quoted 3 lines

Hello OpenVPN Developers,

I understand that the current version of OpenVPN supports

implementation of TLS 1.2 using exported cert and key. However, I have a project that requires implementation of TLS 1.2 using cryptoapicert.

Quoted 2 lines

If any developer is interested to work on this implementation in

OpenVPN, please email me specifying the cost of doing this. I do respect the developer's time and effort and hence, this will be a paid engagement.

Quoted 8 lines

Thank you.

Best Regards,
Isaac

------------------------------------------------------------------------------

Quoted 5 lines

Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk

Quoted 6 lines

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQzz9UACgkQwp2X7RmNIqMnpwCdGkTeOe9UFqutDBcJz+ZOK38s KgIAoIK1FKWFCHZdu2sTiN5laqVkClWD
=dC3b
-----END PGP SIGNATURE-----

#2 lore raw

Hi Samuli,

Thanks for your reply. I've checked on the link that you provided. However, it does not mention whether the Windows Crypto API integration supports TLS 1.2 implementation. I understand that it does support TLS 1.0 implementation, similar to the OpenVPN community version. If the OpenVPN Connect client is based on the community version, then I doubt it supports TLS 1.2 using cryptoapicert as I've tested with the community version. Please correct me if I'm wrong.

I hope someone will be interested to work on this implementation as my team is having a tight schedule implementing this for a project.

Regards,
Isaac

Quoted 63 lines · Samuli Seppänen

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Have you checked if the OpenVPN Connect client (bundled with the Access Server) meets your requirements? See section 5 in here:

<http://openvpn.net/index.php/access-server/as-advantages.html>
<http://openvpn.net/index.php/access-server/as-advantages.html>

- --
Samuli Seppänen
Community Manager
OpenVPN Technologies, Inc

irc freenode net: mattock

Quoted 3 lines

Hello OpenVPN Developers,

I understand that the current version of OpenVPN supports implementation

of TLS 1.2 using exported cert and key. However, I have a project that requires implementation of TLS 1.2 using cryptoapicert.

Quoted 2 lines

If any developer is interested to work on this implementation in

OpenVPN, please email me specifying the cost of doing this. I do respect the developer's time and effort and hence, this will be a paid engagement.

Quoted 8 lines

Thank you.

Best Regards,
Isaac

------------------------------------------------------------------------------

Quoted 5 lines

Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer

http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk

Quoted 6 lines

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQzz9UACgkQwp2X7RmNIqMnpwCdGkTeOe9UFqutDBcJz+ZOK38s KgIAoIK1FKWFCHZdu2sTiN5laqVkClWD
=dC3b
-----END PGP SIGNATURE-----

#3 lore raw

Am 07.10.14 16:32, schrieb Sio Poh Tan:

Quoted 3 lines

Hi Samuli,

Thanks for your reply. I've checked on the link that you provided.

However, it does not mention whether the Windows Crypto API integration supports TLS 1.2 implementation. I understand that it does support TLS 1.0 implementation, similar to the OpenVPN community version. If the OpenVPN Connect client is based on the community version, then I doubt it supports TLS 1.2 using cryptoapicert as I've tested with the community version. Please correct me if I'm wrong.

Quoted 2 lines

I hope someone will be interested to work on this implementation as my

team is having a tight schedule implementing this for a project.

Probably it uses the management-api and the external-key-management API of the management interface. My Android client (OpenVPN for Android) uses that API to work with the Android keystore and does TLS 1.2 just fine. That OpenVPN Connect can use the MAC Crypto store which OpenVPN does not support kind of confirms that theory.

For anyone who wants to pick up this work. This probably only replacing the api calls which do RSA signing of the SHA1 checksum with an API call that can do signing of SHA1 + SHA* variants (basicialy signing longer bitstrings).

Arne

#4 lore raw

Hi *,

Quoted 16 lines · Arne Schwabe

Am 07.10.14 16:32, schrieb Sio Poh Tan:

Quoted 5 lines

Hi Samuli,

Thanks for your reply. I've checked on the link that you

provided. However, it does not mention whether the Windows Crypto API integration supports TLS 1.2 implementation. I understand that it does support TLS 1.0 implementation, similar to the OpenVPN community version. If the OpenVPN Connect client is based on the community version, then I doubt it supports TLS 1.2 using cryptoapicert as I've tested with the community version. Please correct me if I'm wrong.

Quoted 1 line
Quoted 8 lines
Quoted 1 line

I hope someone will be interested to work on this

implementation as my team is having a tight schedule implementing this for a project.

Probably it uses the management-api and the external-key-management API of the management interface. My Android client (OpenVPN for Android) uses that API to work with the Android keystore and does TLS 1.2 just fine. That OpenVPN Connect can use the MAC Crypto store which OpenVPN does not support kind of confirms that theory.

For anyone who wants to pick up this work. This probably only replacing the api calls which do RSA signing of the SHA1 checksum with an API call that can do signing of SHA1 + SHA* variants (basicialy signing longer bitstrings).

I've been looking into this one a bit - looks trickier than that.
For clarity's sake:
- openvpn 2.3.4 on Windows works with 'cryptoapicert' "as always"
- openvpn 2.3.4 on Windows works whith external cert/key pair (.crt/.key file) in combination with tls-version-min 1.2

combine the two and it breaks, i.e. tls-version-min 1.2 + cryptoapicert goes bust with a mediocre OpenSSL error related to
RSA_EAY_Sign & message length

If I use a pkcs11 shim in front of the ms-capi library (e.g. p11capi_w32.dll) so that I can access the cryptostore keys via a pkcs#11 interface then it also breaks , again on the rsa_sign process.

So, it looks like running rsa_sign with a cert/key pair coming out of the cryptostore store is causing some low level openssl problems. Don't know how easy it is fix, but most likely it's not inside the OpenVPN code...

HTH,

JJK

#5 lore raw
Quoted 7 lines

So, it looks like running rsa_sign with a cert/key pair coming out of the cryptostore store is causing some low level openssl problems. Don't know how easy it is fix, but most likely it's not inside the OpenVPN code...

Pretty easy (for OpenSSL standards...). You have to use the lowlevel functions instead of rsa_sign. See also
https://code.google.com/p/ics-openvpn/source/browse/main/jni/jbcrypto.cpp

Basically for ics-openvpn the change was to replace

RSA_sign(NID_md5_sha1, (unsigned char*) data, datalen,

        sigret, &siglen, pkey->pkey.rsa) <= 0 )

with

siglen = RSA_private_encrypt(datalen,(unsigned char*)
data,sigret,pkey->pkey.rsa,RSA_PKCS1_PADDING);

But I haven't looked at the OpenVPN source code yet which code path is called there.

Arne

#6 lore raw

Hi,

Quoted 14 lines · Arne Schwabe
Quoted 5 lines

So, it looks like running rsa_sign with a cert/key pair coming out of the cryptostore store is causing some low level openssl problems. Don't know how easy it is fix, but most likely it's not inside the OpenVPN code...

Pretty easy (for OpenSSL standards...). You have to use the lowlevel functions instead of rsa_sign. See also
https://code.google.com/p/ics-openvpn/source/browse/main/jni/jbcrypto.cpp

Basically for ics-openvpn the change was to replace

RSA_sign(NID_md5_sha1, (unsigned char*) data, datalen,

        sigret, &siglen, pkey->pkey.rsa) <= 0 )
Quoted 7 lines

with

siglen = RSA_private_encrypt(datalen,(unsigned char*)
data,sigret,pkey->pkey.rsa,RSA_PKCS1_PADDING);

But I haven't looked at the OpenVPN source code yet which code path is called there.

I took a peek at the code, and I think it is the other way around. The cryptoapi code (like e.g. openvpn's pkcs11 code), supplies openssl with a signing function. OpenSSL then call thet function during the TLS handshake to get a valid signature.

However, the sign function in openvpn's cryptoapi.c restricts the possible signatures to tls 1.0/1.1 signatures and needs to be extended. But here's the catch: Microsofts crypto API sign function does not understand TLS 1.2 signatures either. Using the encrypt function might work here too, but the API is quite different, so you'll have to figure out how to retrieve the correct key (reference).

-Steffan